﻿<UserControl x:Class="MultipleMonitorVideo.Views.VideoControlView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:local="clr-namespace:MultipleMonitorVideo.Views"
             xmlns:viewModels="clr-namespace:MultipleMonitorVideo.ViewModels"
             mc:Ignorable="d"
             d:DesignHeight="240" d:DesignWidth="320">
    <UserControl.DataContext>
        <viewModels:VideoControlViewModel/>
    </UserControl.DataContext>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <local:BaseControlView Grid.Row="0" />
        <GroupBox Grid.Row="1" Header="Select Video" VerticalAlignment="Top">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="75"/>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="75"/>
                </Grid.ColumnDefinitions>
                <Button Grid.Column="0" Content="Select File..." Command="{Binding SelectFileCommand}"/>
                <TextBox Grid.Column="1" Text="{Binding Path=FileName}"/>
                <Button Grid.Column="2" Content="Play Video" Command="{Binding PlayNewVideoCommand}"/>
            </Grid>
        </GroupBox>
        <GroupBox Grid.Row="2" Header="Video Controls" VerticalAlignment="Top">
            <Grid Height="50">
                <Button Content="Play" HorizontalAlignment="Left" VerticalAlignment="Center"
                        Margin="80,0,0,0" IsEnabled="True"
                        Command="{Binding PlayVideoCommand}"/>
                <Button Content="Pause" HorizontalAlignment="Center" VerticalAlignment="Center"
                        IsEnabled="True"
                        Command="{Binding PauseVideoCommand}"/>
                <Button Content="Stop" HorizontalAlignment="Right" VerticalAlignment="Center"
                        Margin="0,0,80,0" IsEnabled="True"
                        Command="{Binding StopVideoCommand}"/>
            </Grid>
        </GroupBox>
    </Grid>
</UserControl>
